import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 自定义全局组件注册
import 'virtual:svg-icons-register'
import gloablComponent from './components/index'
// 注册默认样式
import '@/styles/index.scss'
// 注册路由
import router from '@/router'
import pinia from '@/stores/index.ts'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn
})
app.use(gloablComponent)
app.use(router)
app.use(pinia)
app.mount('#app')
